<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Grupo12daturma2MIEIC4: Referência à classe DataCal</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript">
$(document).ready(initResizable);
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body onload='searchBox.OnSelectItem(0);'>
<!-- Gerado por Doxygen 1.7.4 -->
<script type="text/javascript"><!--
var searchBox = new SearchBox("searchBox", "search",false,'Localizar');
--></script>
<div id="top">
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">Grupo12daturma2MIEIC4&#160;<span id="projectnumber">1.0</span></div>
  </td>
 </tr>
 </tbody>
</table>
</div>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Página&#160;principal</span></a></li>
      <li class="current"><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="files.html"><span>Ficheiros</span></a></li>
      <li id="searchli">
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Localizar" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Lista&#160;de&#160;componentes</span></a></li>
      <li><a href="classes.html"><span>Índice&#160;dos&#160;componentes</span></a></li>
      <li><a href="functions.html"><span>Componentes&#160;membro</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('class_data_cal.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="summary">
<a href="#pub-methods">Membros públicos</a> &#124;
<a href="#pri-attribs">Atributos Privados</a> &#124;
<a href="#friends">Amigos</a>  </div>
  <div class="headertitle">
<div class="title">Referência à classe DataCal</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="DataCal" -->
<p>Classe para tratamento de datas.  
 <a href="class_data_cal.html#details">Mais...</a></p>

<p><code>#include &lt;<a class="el" href="_data_cal_8h_source.html">DataCal.h</a>&gt;</code></p>

<p><a href="class_data_cal-members.html">Mostrar lista completa dos membros</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Membros públicos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a824a10ef140a2449c0a0d1681f797c9a">DataCal</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Os dados são guardados internamente como inteiros.  <a href="#a824a10ef140a2449c0a0d1681f797c9a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#abef8509e0358c871e1189a0203245f79">DataCal</a> (int d, int m, int a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor da Classe vazio.  <a href="#abef8509e0358c871e1189a0203245f79"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a222ab106ffc1b520f08dc7d887ae5d53">DataCal</a> (string linha)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Construtor que recebe os dados como inteiros.  <a href="#a222ab106ffc1b520f08dc7d887ae5d53"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#ad9ea21d785b32bb91d6e2b43735c147f">~DataCal</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">dividindo a string em três variáveis: dia, mes e ano.  <a href="#ad9ea21d785b32bb91d6e2b43735c147f"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a2e9e72e91f7c8cc25e7fcec6f8ba84e4">setDia</a> (int d)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Destrutor da Classe.  <a href="#a2e9e72e91f7c8cc25e7fcec6f8ba84e4"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a34af8fea0e202f57879b7cc8141897da">setMes</a> (int m)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Recebe um inteiro para a variável dia.  <a href="#a34af8fea0e202f57879b7cc8141897da"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a7c30de256ad79e81edecc76978ce39e9">setAno</a> (int a)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Recebe um inteiro para a variável mes.  <a href="#a7c30de256ad79e81edecc76978ce39e9"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#ac10b4b684f8ae9ee0df037fcab7fa1cf">getDia</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Recebe um inteiro para a variável ano.  <a href="#ac10b4b684f8ae9ee0df037fcab7fa1cf"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a13481014ee327dd75acfc119fedbde6e">getMes</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna um inteiro referente à variável dia.  <a href="#a13481014ee327dd75acfc119fedbde6e"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#af4958683efb08b6eb146e70a38d54340">getAno</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna um inteiro referente à variável mes.  <a href="#af4958683efb08b6eb146e70a38d54340"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#ad6ae14de4242d2ec226a55879b120a2d">getData</a> ()</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna um inteiro referente à variável ano.  <a href="#ad6ae14de4242d2ec226a55879b120a2d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="class_data_cal.html">DataCal</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a58a420480c02cb28fce156100b939186">operator=</a> (string linha)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Retorna a data numa única string no formato dd-mm-aaaa.  <a href="#a58a420480c02cb28fce156100b939186"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#ab390650bf926d6a9117f43ee317eec3b">operator==</a> (<a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">dividindo a string em três variáveis: dia, mes e ano. Semelhante ao construtor.  <a href="#ab390650bf926d6a9117f43ee317eec3b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a51327008f6b766fd7be9d55563bf194b">operator&lt;</a> (<a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload do operador de comparação, para comparar datas. Faz comparações entre dias, meses e anos.  <a href="#a51327008f6b766fd7be9d55563bf194b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a23d4eae5cb838b0f196b06de77b7ad13">operator&lt;=</a> (<a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload do operador de menor, para comparar datas. Faz comparações entre dias, meses e anos.  <a href="#a23d4eae5cb838b0f196b06de77b7ad13"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a63ff8ac4b3c23e1d9136d2e4d82a000b">operator&gt;</a> (<a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload do operador de menor ou igual, para comparar datas. Faz comparações entre dias, meses e anos.  <a href="#a63ff8ac4b3c23e1d9136d2e4d82a000b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a769e9aa2709e0be086a83664c0a29820">operator&gt;=</a> (<a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload do operador de maior, para comparar datas. Faz comparaçães entre dias, meses e anos.  <a href="#a769e9aa2709e0be086a83664c0a29820"></a><br/></td></tr>
<tr><td colspan="2"><h2><a name="pri-attribs"></a>
Atributos Privados</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a1a94cd4ec7b8dc06706271bb4ccbf192">dia</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#ac2ff594aac7e08d404ef9a6de2303b0f">mes</a></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#ab50c0da1563de37c4f1220556b2ac2ba">ano</a></td></tr>
<tr><td colspan="2"><h2><a name="friends"></a>
Amigos</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">ostream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#a5956db4fac9ed4be62a2b6d90f96e19b">operator&lt;&lt;</a> (ostream &amp;out, const <a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload do operador de maior ou igual, para comparar datas. Faz comparações entre dias, meses e anos.  <a href="#a5956db4fac9ed4be62a2b6d90f96e19b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">istream &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_data_cal.html#abd3e8ed00044f83c68b169d478f9aa62">operator&gt;&gt;</a> (istream &amp;in, <a class="el" href="class_data_cal.html">DataCal</a> &amp;b)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Overload do operador de leitura, para ler datas.  <a href="#abd3e8ed00044f83c68b169d478f9aa62"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Descrição detalhada</h2>
<div class="textblock"><p>Classe para tratamento de datas. </p>
<p>Trabalha com datas no formato dd-mm-aaaa. Funcionalidades disponibilizadas:</p>
<ul>
<li>Comparação de datas;</li>
<li>Envio para stream de saída;</li>
<li>Recolha dos valores da data a partir da stream de entrada; </li>
</ul>

<p>Definido na linha <a class="el" href="_data_cal_8h_source.html#l00030">30</a> do ficheiro <a class="el" href="_data_cal_8h_source.html">DataCal.h</a>.</p>
</div><hr/><h2>Documentação dos Construtores &amp; Destrutor</h2>
<a class="anchor" id="a824a10ef140a2449c0a0d1681f797c9a"></a><!-- doxytag: member="DataCal::DataCal" ref="a824a10ef140a2449c0a0d1681f797c9a" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DataCal::DataCal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Os dados são guardados internamente como inteiros. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00026">26</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00105">operator=()</a>.</p>

</div>
</div>
<a class="anchor" id="abef8509e0358c871e1189a0203245f79"></a><!-- doxytag: member="DataCal::DataCal" ref="abef8509e0358c871e1189a0203245f79" args="(int d, int m, int a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DataCal::DataCal </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>d</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>m</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor da Classe vazio. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00019">19</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<a class="anchor" id="a222ab106ffc1b520f08dc7d887ae5d53"></a><!-- doxytag: member="DataCal::DataCal" ref="a222ab106ffc1b520f08dc7d887ae5d53" args="(string linha)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DataCal::DataCal </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>linha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Construtor que recebe os dados como inteiros. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00028">28</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>, <a class="el" href="_auxiliar_8cpp_source.html#l00019">separador()</a> e <a class="el" href="_auxiliar_8cpp_source.html#l00032">stringParaInteiro()</a>.</p>

</div>
</div>
<a class="anchor" id="ad9ea21d785b32bb91d6e2b43735c147f"></a><!-- doxytag: member="DataCal::~DataCal" ref="ad9ea21d785b32bb91d6e2b43735c147f" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">DataCal::~DataCal </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>dividindo a string em três variáveis: dia, mes e ano. </p>
<p>Construtor da Classe <a class="el" href="class_data_cal.html" title="Classe para tratamento de datas.">DataCal</a> que recebe uma string para conversão para inteiros. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00037">37</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

</div>
</div>
<hr/><h2>Documentação dos métodos</h2>
<a class="anchor" id="af4958683efb08b6eb146e70a38d54340"></a><!-- doxytag: member="DataCal::getAno" ref="af4958683efb08b6eb146e70a38d54340" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DataCal::getAno </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna um inteiro referente à variável mes. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00061">61</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00073">operator&lt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00081">operator&lt;=()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00068">operator==()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00089">operator&gt;()</a> e <a class="el" href="_data_cal_8cpp_source.html#l00097">operator&gt;=()</a>.</p>

</div>
</div>
<a class="anchor" id="ad6ae14de4242d2ec226a55879b120a2d"></a><!-- doxytag: member="DataCal::getData" ref="ad6ae14de4242d2ec226a55879b120a2d" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">string DataCal::getData </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna um inteiro referente à variável ano. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00063">63</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_auxiliar_8cpp_source.html#l00061">intToString()</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

<p>Referenciado por <a class="el" href="_consulta_8cpp_source.html#l00034">Consulta::guardar()</a>.</p>

</div>
</div>
<a class="anchor" id="ac10b4b684f8ae9ee0df037fcab7fa1cf"></a><!-- doxytag: member="DataCal::getDia" ref="ac10b4b684f8ae9ee0df037fcab7fa1cf" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DataCal::getDia </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recebe um inteiro para a variável ano. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00057">57</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00073">operator&lt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00081">operator&lt;=()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00068">operator==()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00089">operator&gt;()</a> e <a class="el" href="_data_cal_8cpp_source.html#l00097">operator&gt;=()</a>.</p>

</div>
</div>
<a class="anchor" id="a13481014ee327dd75acfc119fedbde6e"></a><!-- doxytag: member="DataCal::getMes" ref="a13481014ee327dd75acfc119fedbde6e" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int DataCal::getMes </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna um inteiro referente à variável dia. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00059">59</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00073">operator&lt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00081">operator&lt;=()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00068">operator==()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00089">operator&gt;()</a> e <a class="el" href="_data_cal_8cpp_source.html#l00097">operator&gt;=()</a>.</p>

</div>
</div>
<a class="anchor" id="a51327008f6b766fd7be9d55563bf194b"></a><!-- doxytag: member="DataCal::operator&lt;" ref="a51327008f6b766fd7be9d55563bf194b" args="(DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DataCal::operator&lt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overload do operador de comparação, para comparar datas. Faz comparações entre dias, meses e anos. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00073">73</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_data_cal_8cpp_source.html#l00061">getAno()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00057">getDia()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00059">getMes()</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<a class="anchor" id="a23d4eae5cb838b0f196b06de77b7ad13"></a><!-- doxytag: member="DataCal::operator&lt;=" ref="a23d4eae5cb838b0f196b06de77b7ad13" args="(DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DataCal::operator&lt;= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overload do operador de menor, para comparar datas. Faz comparações entre dias, meses e anos. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00081">81</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_data_cal_8cpp_source.html#l00061">getAno()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00057">getDia()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00059">getMes()</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<a class="anchor" id="a58a420480c02cb28fce156100b939186"></a><!-- doxytag: member="DataCal::operator=" ref="a58a420480c02cb28fce156100b939186" args="(string linha)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="class_data_cal.html">DataCal</a> DataCal::operator= </td>
          <td>(</td>
          <td class="paramtype">string&#160;</td>
          <td class="paramname"><em>linha</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Retorna a data numa única string no formato dd-mm-aaaa. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00105">105</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8cpp_source.html#l00026">DataCal()</a>, <a class="el" href="_auxiliar_8cpp_source.html#l00019">separador()</a> e <a class="el" href="_auxiliar_8cpp_source.html#l00032">stringParaInteiro()</a>.</p>

</div>
</div>
<a class="anchor" id="ab390650bf926d6a9117f43ee317eec3b"></a><!-- doxytag: member="DataCal::operator==" ref="ab390650bf926d6a9117f43ee317eec3b" args="(DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DataCal::operator== </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>dividindo a string em três variáveis: dia, mes e ano. Semelhante ao construtor. </p>
<p>Overload do operador de atribuição, que recebe uma string e faz a conversão para inteiro, </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00068">68</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_data_cal_8cpp_source.html#l00061">getAno()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00057">getDia()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00059">getMes()</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<a class="anchor" id="a63ff8ac4b3c23e1d9136d2e4d82a000b"></a><!-- doxytag: member="DataCal::operator&gt;" ref="a63ff8ac4b3c23e1d9136d2e4d82a000b" args="(DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DataCal::operator&gt; </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overload do operador de menor ou igual, para comparar datas. Faz comparações entre dias, meses e anos. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00089">89</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_data_cal_8cpp_source.html#l00061">getAno()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00057">getDia()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00059">getMes()</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<a class="anchor" id="a769e9aa2709e0be086a83664c0a29820"></a><!-- doxytag: member="DataCal::operator&gt;=" ref="a769e9aa2709e0be086a83664c0a29820" args="(DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool DataCal::operator&gt;= </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overload do operador de maior, para comparar datas. Faz comparaçães entre dias, meses e anos. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00097">97</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>, <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>, <a class="el" href="_data_cal_8cpp_source.html#l00061">getAno()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00057">getDia()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00059">getMes()</a> e <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<a class="anchor" id="a7c30de256ad79e81edecc76978ce39e9"></a><!-- doxytag: member="DataCal::setAno" ref="a7c30de256ad79e81edecc76978ce39e9" args="(int a)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DataCal::setAno </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>a</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recebe um inteiro para a variável mes. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00051">51</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">ano</a>.</p>

</div>
</div>
<a class="anchor" id="a2e9e72e91f7c8cc25e7fcec6f8ba84e4"></a><!-- doxytag: member="DataCal::setDia" ref="a2e9e72e91f7c8cc25e7fcec6f8ba84e4" args="(int d)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DataCal::setDia </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>d</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Destrutor da Classe. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00039">39</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">dia</a>.</p>

</div>
</div>
<a class="anchor" id="a34af8fea0e202f57879b7cc8141897da"></a><!-- doxytag: member="DataCal::setMes" ref="a34af8fea0e202f57879b7cc8141897da" args="(int m)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void DataCal::setMes </td>
          <td>(</td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>m</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Recebe um inteiro para a variável dia. </p>

<p>Definido na linha <a class="el" href="_data_cal_8cpp_source.html#l00045">45</a> do ficheiro <a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a>.</p>

<p>Referências <a class="el" href="_data_cal_8h_source.html#l00031">mes</a>.</p>

</div>
</div>
<hr/><h2>Documentação das classes amigas e funções relacionadas</h2>
<a class="anchor" id="a5956db4fac9ed4be62a2b6d90f96e19b"></a><!-- doxytag: member="DataCal::operator&lt;&lt;" ref="a5956db4fac9ed4be62a2b6d90f96e19b" args="(ostream &amp;out, const DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">ostream&amp; operator&lt;&lt; </td>
          <td>(</td>
          <td class="paramtype">ostream &amp;&#160;</td>
          <td class="paramname"><em>out</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overload do operador de maior ou igual, para comparar datas. Faz comparações entre dias, meses e anos. </p>
<p>Overload do operador de escrita, para escrever datas. </p>

<p>Definido na linha <a class="el" href="_data_cal_8h_source.html#l00057">57</a> do ficheiro <a class="el" href="_data_cal_8h_source.html">DataCal.h</a>.</p>

</div>
</div>
<a class="anchor" id="abd3e8ed00044f83c68b169d478f9aa62"></a><!-- doxytag: member="DataCal::operator&gt;&gt;" ref="abd3e8ed00044f83c68b169d478f9aa62" args="(istream &amp;in, DataCal &amp;b)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">istream&amp; operator&gt;&gt; </td>
          <td>(</td>
          <td class="paramtype">istream &amp;&#160;</td>
          <td class="paramname"><em>in</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="class_data_cal.html">DataCal</a> &amp;&#160;</td>
          <td class="paramname"><em>b</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td><code> [friend]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Overload do operador de leitura, para ler datas. </p>

<p>Definido na linha <a class="el" href="_data_cal_8h_source.html#l00064">64</a> do ficheiro <a class="el" href="_data_cal_8h_source.html">DataCal.h</a>.</p>

</div>
</div>
<hr/><h2>Documentação dos dados membro</h2>
<a class="anchor" id="ab50c0da1563de37c4f1220556b2ac2ba"></a><!-- doxytag: member="DataCal::ano" ref="ab50c0da1563de37c4f1220556b2ac2ba" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_data_cal.html#ab50c0da1563de37c4f1220556b2ac2ba">DataCal::ano</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="_data_cal_8h_source.html#l00031">31</a> do ficheiro <a class="el" href="_data_cal_8h_source.html">DataCal.h</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00019">DataCal()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00061">getAno()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00063">getData()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00073">operator&lt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00081">operator&lt;=()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00068">operator==()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00089">operator&gt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00097">operator&gt;=()</a> e <a class="el" href="_data_cal_8cpp_source.html#l00051">setAno()</a>.</p>

</div>
</div>
<a class="anchor" id="a1a94cd4ec7b8dc06706271bb4ccbf192"></a><!-- doxytag: member="DataCal::dia" ref="a1a94cd4ec7b8dc06706271bb4ccbf192" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_data_cal.html#a1a94cd4ec7b8dc06706271bb4ccbf192">DataCal::dia</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="_data_cal_8h_source.html#l00031">31</a> do ficheiro <a class="el" href="_data_cal_8h_source.html">DataCal.h</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00019">DataCal()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00063">getData()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00057">getDia()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00073">operator&lt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00081">operator&lt;=()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00068">operator==()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00089">operator&gt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00097">operator&gt;=()</a> e <a class="el" href="_data_cal_8cpp_source.html#l00039">setDia()</a>.</p>

</div>
</div>
<a class="anchor" id="ac2ff594aac7e08d404ef9a6de2303b0f"></a><!-- doxytag: member="DataCal::mes" ref="ac2ff594aac7e08d404ef9a6de2303b0f" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int <a class="el" href="class_data_cal.html#ac2ff594aac7e08d404ef9a6de2303b0f">DataCal::mes</a><code> [private]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Definido na linha <a class="el" href="_data_cal_8h_source.html#l00031">31</a> do ficheiro <a class="el" href="_data_cal_8h_source.html">DataCal.h</a>.</p>

<p>Referenciado por <a class="el" href="_data_cal_8cpp_source.html#l00019">DataCal()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00063">getData()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00059">getMes()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00073">operator&lt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00081">operator&lt;=()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00068">operator==()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00089">operator&gt;()</a>, <a class="el" href="_data_cal_8cpp_source.html#l00097">operator&gt;=()</a> e <a class="el" href="_data_cal_8cpp_source.html#l00045">setMes()</a>.</p>

</div>
</div>
<hr/>A documentação para esta classe foi gerada a partir dos seguintes ficheiros:<ul>
<li>C:/Users/Paulo/Documents/FEUP/EclipseWorkSpace/calgrafos/src/<a class="el" href="_data_cal_8h_source.html">DataCal.h</a></li>
<li>C:/Users/Paulo/Documents/FEUP/EclipseWorkSpace/calgrafos/src/<a class="el" href="_data_cal_8cpp_source.html">DataCal.cpp</a></li>
</ul>
</div>
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="class_data_cal.html">DataCal</a>      </li>
      <li class="footer">Gerado em Fri May 13 2011 02:00:26 para Grupo12daturma2MIEIC4 por&#160;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.4 </li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>Tudo</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Ficheiros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Funções</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variáveis</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Amigos</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Macros</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>


</body>
</html>
